package com.fancy.mobileschool.util;

import okhttp3.OkHttpClient;

/**
 * Created by Jackie on 2017/10/22.
 *
 */

public class OKHttpUtil {

    private static OkHttpClient httpClient;

    public static OkHttpClient getHttpClient(){
        if (httpClient == null){
            synchronized (OKHttpUtil.class){
                if (httpClient == null){
                    httpClient = new OkHttpClient();
                }
            }
        }

        return httpClient;
    }
}
